int Med3 = [
        A<=B && A>=C :A;
        A<=C && A>=B :A;
        B<=A && B>=C :B;
        B<=C && B>=A :B;
        1	     :C;
];
